/*
 * XML Type:  StopCheckRequest
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.StopCheckRequest
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML StopCheckRequest(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class StopCheckRequestImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.StopCheckRequest
{
    
    public StopCheckRequestImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BANKACCTFROM$0 = 
        new javax.xml.namespace.QName("", "BANKACCTFROM");
    private static final javax.xml.namespace.QName CHKRANGE$2 = 
        new javax.xml.namespace.QName("", "CHKRANGE");
    private static final javax.xml.namespace.QName CHKDESC$4 = 
        new javax.xml.namespace.QName("", "CHKDESC");
    
    
    /**
     * Gets the "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount getBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "BANKACCTFROM" element
     */
    public void setBANKACCTFROM(net.ofx.types.x2003.x04.BankAccount bankacctfrom)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().find_element_user(BANKACCTFROM$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            }
            target.set(bankacctfrom);
        }
    }
    
    /**
     * Appends and returns a new empty "BANKACCTFROM" element
     */
    public net.ofx.types.x2003.x04.BankAccount addNewBANKACCTFROM()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BankAccount target = null;
            target = (net.ofx.types.x2003.x04.BankAccount)get_store().add_element_user(BANKACCTFROM$0);
            return target;
        }
    }
    
    /**
     * Gets the "CHKRANGE" element
     */
    public net.ofx.types.x2003.x04.CheckRange getCHKRANGE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckRange target = null;
            target = (net.ofx.types.x2003.x04.CheckRange)get_store().find_element_user(CHKRANGE$2, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CHKRANGE" element
     */
    public boolean isSetCHKRANGE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHKRANGE$2) != 0;
        }
    }
    
    /**
     * Sets the "CHKRANGE" element
     */
    public void setCHKRANGE(net.ofx.types.x2003.x04.CheckRange chkrange)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckRange target = null;
            target = (net.ofx.types.x2003.x04.CheckRange)get_store().find_element_user(CHKRANGE$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CheckRange)get_store().add_element_user(CHKRANGE$2);
            }
            target.set(chkrange);
        }
    }
    
    /**
     * Appends and returns a new empty "CHKRANGE" element
     */
    public net.ofx.types.x2003.x04.CheckRange addNewCHKRANGE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckRange target = null;
            target = (net.ofx.types.x2003.x04.CheckRange)get_store().add_element_user(CHKRANGE$2);
            return target;
        }
    }
    
    /**
     * Unsets the "CHKRANGE" element
     */
    public void unsetCHKRANGE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHKRANGE$2, 0);
        }
    }
    
    /**
     * Gets the "CHKDESC" element
     */
    public net.ofx.types.x2003.x04.CheckDescription getCHKDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckDescription target = null;
            target = (net.ofx.types.x2003.x04.CheckDescription)get_store().find_element_user(CHKDESC$4, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "CHKDESC" element
     */
    public boolean isSetCHKDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(CHKDESC$4) != 0;
        }
    }
    
    /**
     * Sets the "CHKDESC" element
     */
    public void setCHKDESC(net.ofx.types.x2003.x04.CheckDescription chkdesc)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckDescription target = null;
            target = (net.ofx.types.x2003.x04.CheckDescription)get_store().find_element_user(CHKDESC$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.CheckDescription)get_store().add_element_user(CHKDESC$4);
            }
            target.set(chkdesc);
        }
    }
    
    /**
     * Appends and returns a new empty "CHKDESC" element
     */
    public net.ofx.types.x2003.x04.CheckDescription addNewCHKDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.CheckDescription target = null;
            target = (net.ofx.types.x2003.x04.CheckDescription)get_store().add_element_user(CHKDESC$4);
            return target;
        }
    }
    
    /**
     * Unsets the "CHKDESC" element
     */
    public void unsetCHKDESC()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(CHKDESC$4, 0);
        }
    }
}
